#include "DoubleList.h"
#include <iostream>
using namespace std;
void test1()
{
	ListNode* list = ListInit();
	ListPushBack(list, 1);
	ListPushBack(list, 2);
	ListPushBack(list, 3);
	ListPushBack(list, 4);
	ListPushFront(list, 5);
	ListPopBack(list);
	ListPopFront(list);
	
	ListNode* pos = ListFind(list, 2);
	cout << pos << endl;
	ListInsert(pos, 10);
	ListErase(pos);
	ListPrint(list);

}

int main()
{
	test1();
	return 0;
}